package cn.seaboot.admin.flake.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * POJO
 * 参数字段映射 [T_FLAKE_PARAM_MAPPING]
 *
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "参数字段映射 [T_FLAKE_PARAM_MAPPING] 实体类")
public class FlakeParamMapping implements Serializable {

    private static final long serialVersionUID = 6919312361929640831L;
    /**
     * 数据库Id
     */
    @NotNull
    @Size( max = 32)
    @Schema(description = "数据库Id")
    private String databaseId;
    /**
     * 参数ID
     */
    @Size( max = 32)
    @Schema(description = "参数ID")
    private String paramId;

    private String mode;
    /**
     * 参数名
     */
    @Size( max = 32)
    @Schema(description = "参数名")
    private String property;
    /**
     * java类型
     */
    @Size( max = 32)
    @Schema(description = "java类型")
    private String javaType;
    /**
     * jdbc类型
     */
    @Size( max = 32)
    @Schema(description = "jdbc类型")
    private String jdbcType;
    /**
     * 小数精度
     */
    @Size( max = 32)
    @Schema(description = "小数精度")
    private Integer numericScale;
    /**
     * 表达式
     */
    @Size( max = 32)
    @Schema(description = "表达式")
    private String expression;

    public String getDatabaseId() {
        return databaseId;
    }

    public void setDatabaseId(String databaseId) {
        this.databaseId = databaseId;
    }

    public String getParamId() {
        return paramId;
    }

    public void setParamId(String paramId) {
        this.paramId = paramId;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getJdbcType() {
        return jdbcType;
    }

    public void setJdbcType(String jdbcType) {
        this.jdbcType = jdbcType;
    }

    public Integer getNumericScale() {
        return numericScale;
    }

    public void setNumericScale(Integer numericScale) {
        this.numericScale = numericScale;
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }
}
